# 定义装饰器
def logger(func):
    def inner(a, b):
        return func(a, b)

    return inner


# 装饰函数
@logger
def sum_num(a, b):
    return a + b


print(sum_num(1, 2))
